<?php

  class ChanceCategory extends Category
  {
    public function __construct($name, Dice $dice)
    {
      parent::__construct($name);
      
      $this->score = array_sum($dice->getValues());
    }
  }